package com.base.essearch.video.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.base.essearch.video.entity.media.MediaFileProcessM3u8;
import com.base.essearch.webupload.entity.FileRecord;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author lr
 * @since 2020-12-06
 */
@ToString
@Data
@EqualsAndHashCode(callSuper = false)
public class VideoMediaFile implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.INPUT)
    private String fileId;

    private String fileName;

    private String fileOriginalName;

    private String filePath;

    private Long fileSize;

    private String fileStatus;

    private String fileType;

    private String fileUrl;

    private String mimeType;

    private String processStatus;

    private String tag;

    private Date uploadTime;

    private String errormsg;

    private String netUrl;

    private String m3u8List;


    //    //文件id
//    private String fileId;
//    //文件名称
//    private String fileName;
//    //文件原始名称
//    private String fileOriginalName;
//    //文件路径
//    private String filePath;
//    //文件url
//    private String fileUrl;
//    //文件类型
//    private String fileType;
//    //mimetype
//    private String mimeType;
//    //文件大小
//    private Long fileSize;
//    //文件状态
//    private String fileStatus;
//    //上传时间
//    private Date uploadTime;
//    //处理状态
//    private String processStatus;
    //hls处理
    @TableField(exist = false)
    private MediaFileProcessM3u8 mediaFileProcessM3U8;

    //    //tag标签用于查询
//    private String tag;
//
//    //错误信息
//    private String errormsg;
    @TableField(exist = false)
    private FileRecord fileRecord;

    @TableField(exist = false)
    private List<String> images;

    @TableField(exist = false)
    private String image;
}
